#ifndef ELEVATOR_H
#define ELEVATOR_H


using namespace std;

enum Direction{
    UP,
    DOWN,
    IDLE
};

class Elevator
{

public:
    Elevator(int id,int currentFloor=1,Direction direction=IDLE);

    void call(int floor);
    int move();
    Direction getDirection(){
        return direction;
    }
    int getCurrentFloor(){return currentFloor;}
private:
    int id;
    int currentFloor;
    int targetFloor;
    Direction direction;
};

#endif // ELEVATOR_H
